#pragma once
#include "../LMCommon.h"
#include <boost/thread.hpp>
#include <boost/asio.hpp>

class LMContext;
class LMMasterProxy
{
public:
	LMMasterProxy(boost::shared_ptr<LMContext> context);
	virtual ~LMMasterProxy(void);

public:
	void run();
	void findShare();

protected:
	boost::asio::io_service _ioSrv;
	boost::shared_ptr<LMContext> _context;
	boost::mutex _socketMutex;
	boost::shared_ptr<boost::asio::ip::tcp::socket> _socket;
};

